#include "testlib.h"
#include <bits/stdc++.h>
using namespace std;

const double EPS = 1E-6;

int main(int argc, char *argv[]) {
    setName("checker for 1154A");
    registerTestlibCmd(argc, argv);

    int ans[4] = {inf.readInt(), inf.readInt(), inf.readInt(), inf.readInt()};

    sort(ans, ans + 4);

    int a = ouf.readInt(),
        b = ouf.readInt(),
        c = ouf.readInt();
    
    auto check = [](int x) {
        if(x <= 0)
            quitf(_wa, "Integers must be positive.");
    };

    check(a);
    check(b);
    check(c);

    int p[4] = {a + b, a + c, b + c, a + b + c};

    sort(p, p + 4);
    
    for(int i = 0; i < 4; i ++)
        if(p[i] != ans[i])
            quitf(_wa, "Wrong answer.");
    
    quitf(_ok, "Accepted");
}
